<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('AuditFlow/index')}">审批流程</a></li>
            <li><a href="{:U('AuditFlow/add')}">新建审批流程</a></li>
        </ul>
		<form class="well form-search form-inline" method="post" action="{:U('AuditFlow/index')}">

            <div class="form-group">
                <label>是否删除</label>
                <select name="is_deleted" class="form-control">
                	<option value="0" <if condition="I('request.is_deleted/s','') eq '0'">selected</if>>使用中</option>
                	<option value="1" <if condition="I('request.is_deleted/s','') eq '1'">selected</if>>已删除</option>
                </select>
            </div>
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn btn-danger" href="{:U('User/index')}">清空</a>
        </form>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>功能模块</th>
                    <th>子功能</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                    <th>修改时间</th>
                    <th width="80">已删除</th>
                    <th width="120">{:L('ACTIONS')}</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="results" item="vo">
                    <tr>
                        <td><php>echo $audits[$vo['function']]['name']</php></td>
                        <td><php>echo $audits[$vo['function']]['child'][$vo['subfunction']]</php></td>
                        <td>{$vo.real_name}</td>
                        <td>{$vo.add_time}</td>
                        <td>{$vo.last_time}</td>
                        <td class="text-center">
                            <if condition="$vo['is_deleted'] eq 0">
                                <i class="glyphicon glyphicon-ok text-success"></i>
                            <else />
                                <i class="glyphicon glyphicon glyphicon-remove text-danger"></i>
                            </if>
                        </td>
                        <td>
                            <a href='{:U("AuditFlow/edit",array("id"=>$vo["id"]))}'>修改</a>
                            |
                            <a class="js-ajax-delete" href="{:U('AuditFlow/delete',array('id'=>$vo['id']))}">删除</a>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>